package JobManagementUtils;

/*
This file is part of Open Grid Job Management System (OGJMS).

OGJMS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

OGJMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with OGJMS.  If not, see <http://www.gnu.org/licenses/>.

The entire and newest source code can be found at http://code.google.com/p/ogjms/  
*/

import org.globus.exec.client.GramJob;
import org.globus.exec.generated.JobDescriptionType;
import org.globus.exec.generated.JobTypeEnumeration;

public class RSLFactory {

	public static GramJob createJobSpecifications() {
		JobDescriptionType type = new JobDescriptionType();
		type.setExecutable("/bin/echo");
		type.setArgument(new String[] { "hah " });
		type.setJobType(JobTypeEnumeration.single);
		type.setDirectory("/tmp");
		type.setStderr("errout");
		type.setStdout("stdout");
		GramJob job = new GramJob(type);
		
		

		return job;

	}

}
